
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";

/** 餐厅入住记录 */
const schema = MongooseFactory.Schema({
    userid: {
        type: Schema.Types.ObjectId,
        ref: "customer_account"
    },
    modifyuser: {
        type: Schema.Types.ObjectId,
        ref: "platform_user"
    },
    modifytime: {
        type: Date
    },
    // 餐厅名称
    merchantname: {
        type: String
    },
    // 所在区域
    area: {
        type: String
    },
    // 联系电话
    phone: {
        type: String
    },
    // 联系人
    name: {
        type: String
    },
    // 证书
    certificate: {
        type: String
    },
    //是否联系
    iscontact: {
        type: Number,
        default: 0
    },
    // 备注
    remarks: {
        type: String,
        default: ""
    }
});



export const merchantjoinModel = MongooseFactory.Model("merchantjoin", schema);